<html>
<head>
  <title>系统管理——环境变量设定</title>
  <meta name="layout" content="common_header"/>
  <link rel="stylesheet" type="text/css" href="${resource(dir: 'css', file: 'jquery.validate.css', absolute: true)}"/>
  <script type="text/javascript" src="${resource(dir: 'js/jquery', file: 'jquery.metadata.pack.js', absolute: true)}"></script>
  <script type="text/javascript" src="${resource(dir: 'js/jquery', file: 'jquery.validate.min.js', absolute: true)}"></script>
  <script type="text/javascript" src="${resource(dir: 'js/jquery', file: 'jquery.form.min.js', absolute: true)}"></script>
  <script type="text/javascript" src="${resource(dir: 'js/jquery', file: 'jquery.blockUI.min.js', absolute: true)}"></script>

  <script type="text/javascript" src="${resource(dir: 'js/jquery', file: 'jquery.validate.custom.js', absolute: true)}"></script>
  <script type="text/javascript" src="${resource(dir: 'js/jquery', file: 'common.custom.js', absolute: true)}"></script>
  <script type="text/javascript">
    jQuery(document).ready(function() {
      jQuery("#submitForm").validate({
        errorPlacement: function(error, element) {
          error.appendTo(element.parent("td"));
        },
        submitHandler: function(form) {
          jQuery.blockUI();
          jQuery(form).ajaxSubmit({
            success: function(response) {
              jQuery.unblockUI();
            }
          });
        }
      });
      bindSave();
    });
  </script>
</head>
<body>
<div id="man_zone">
  <form id="submitForm" name="submitForm" action="${createLink(controller: "scaffold", action: 'save', absolute: true)}" method="post">
    <input type="hidden" name="property" value="${bo?.class.simpleName}"/>
    <input type="hidden" name="id" value="${bo?.id}"/>
    <input type="hidden" name="view" value="${forward}"/>
    <table width="99%" border="0" align="center" cellpadding="3" cellspacing="1" class="table_style">
      <tr>
        <td align="center" colspan="4" class="center_title_1">
          <b>楼盘竞标</b>
        </td>
      </tr>
      <tr>
        <td width="20%" class="left_title_1">竞标底价(单位：点)</td>
        <td width="30%" class="fillin">
          <input type="text" id="bidUpset" name="bidUpset" value="${bo?.bidUpsetInt}" class="{notEmpty:'竞标底价',isDigits:true,byteMaxLength:8}"/>
        </td>s
        <td width="20%" class="left_title_1">竞标加价幅度(单位：点)</td>
        <td width="30%" class="fillin">
          <input type="text" id="bidIncrements" name="bidIncrements" value="${bo?.bidIncrementsInt}" class="{notEmpty:'竞标加价幅度',isDigits:true,byteMaxLength:8}"/>
        </td>
      </tr>
      <tr>
        <td class="left_title_1">VIP底价(单位：点)</td>
        <td class="fillin">
          <input type="text" id="vipUpset" name="vipUpset" value="${bo?.vipUpsetInt}" class="{notEmpty:'VIP底价',isDigits:true,byteMaxLength:8}"/>
        </td>
        <td class="left_title_1">VIP加价幅度(单位：点)</td>
        <td class="fillin">
          <input type="text" id="vipIncrements" name="vipIncrements" value="${bo?.vipIncrementsInt}" class="{notEmpty:'VIP加价幅度',isDigits:true,byteMaxLength:8}"/>
        </td>
      </tr>
      <tr>
        <td class="left_title_1">历史记录保留时长(单位：天)</td>
        <td class="fillin">
          <input type="text" id="historySaveDays" name="historySaveDays" value="${bo?.historySaveDays}" class="{notEmpty:'历史记录保留时长',isDigits:true,byteMaxLength:6}"/>
        </td>
        <td class="left_title_1">被挤不扣费时长(单位：小时)</td>
        <td class="fillin">
          <input type="text" id="freeBidHours" name="freeBidHours" value="${bo?.freeBidHours}" class="{notEmpty:'冠亚季军被挤不扣费时长',isDigits:true,byteMaxLength:6}"/>
        </td>
      </tr>
    </table>
    <table width="99%" border="0" align="center" cellpadding="3" cellspacing="1" class="table_style">
      <tr>
        <td align="center" colspan="4" class="center_title_1">
          <b>信息发布</b>
        </td>
      </tr>
      <tr>
        <td width="20%" class="left_title_1">VIP信息最大显示数(单位：条)</td>
        <td width="30%" class="fillin">
          <input type="text" id="vipMaxInfoDispNum" name="vipMaxInfoDispNum" value="${bo?.vipMaxInfoDispNum}" class="{notEmpty:'VIP信息最大显示数',isDigits:true,byteMaxLength:8}"/>
        </td>
        <td width="20%" class="left_title_1">冠军信息最大显示数(单位：条)</td>
        <td width="30%" class="fillin">
          <input type="text" id="firstMaxInfoDispNum" name="firstMaxInfoDispNum" value="${bo?.firstMaxInfoDispNum}" class="{notEmpty:'冠军信息最大显示数',isDigits:true,byteMaxLength:8}"/>
        </td>
      </tr>
      <tr>
        <td class="left_title_1">亚军信息最大显示数(单位：条)</td>
        <td class="fillin">
          <input type="text" id="secondMaxInfoDispNum" name="secondMaxInfoDispNum" value="${bo?.secondMaxInfoDispNum}" class="{notEmpty:'亚军信息最大显示数',isDigits:true,byteMaxLength:8}"/>
        </td>
        <td class="left_title_1">季军信息最大显示数(单位：条)</td>
        <td class="fillin">
          <input type="text" id="thirdMaxInfoDispNum" name="thirdMaxInfoDispNum" value="${bo?.thirdMaxInfoDispNum}" class="{notEmpty:'季军信息最大显示数',isDigits:true,byteMaxLength:8}"/>
        </td>
      </tr>
    </table>
    <table width="99%" border="0" align="center" cellpadding="3" cellspacing="1" class="table_style">
      <tr>
        <td align="center" colspan="4" class="center_title_1">
          <b>积分赠送(单位：分)</b>
        </td>
      </tr>
      <tr>
        <td width="20%" class="left_title_1">用户注册</td>
        <td width="30%" class="fillin">
          <input type="text" id="registerPointPresented" name="registerPointPresented" value="${bo?.registerPointPresented}" class="{notEmpty:'用户注册',isDigits:true,byteMaxLength:8}"/>
        </td>
        <td width="20%" class="left_title_1">用户邀请</td>
        <td width="30%" class="fillin">
          <input type="text" id="invitePointPresented" name="invitePointPresented" value="${bo?.invitePointPresented}" class="{notEmpty:'用户邀请',isDigits:true,byteMaxLength:8}"/>
        </td>
      </tr>
      <tr>
        <td class="left_title_1">楼盘照片上传</td>
        <td class="fillin">
          <input type="text" id="photoPointPresented" name="photoPointPresented" value="${bo?.photoPointPresented}" class="{notEmpty:'楼盘照片上传',isDigits:true,byteMaxLength:8}"/>
        </td>
        <td class="left_title_1">楼盘添加</td>
        <td class="fillin">
          <input type="text" id="estatePointPresented" name="estatePointPresented" value="${bo?.estatePointPresented}" class="{notEmpty:'楼盘添加',isDigits:true,byteMaxLength:8}"/>
        </td>
      </tr>
      <tr>
        <td align="center" colspan="4">
          <a id="doSave" href="javaScript:void(0)"><img src="${resource(dir: '/images/admin_ui/', file: 'save1.gif', absolute: true)}" alt="保存"/></a>
        </td>
      </tr>
    </table>
  </form>
</div>
</body>
</html>
